import { createApp } from 'vue'
//import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import router from '@/router'
import App from './App.vue'
import {createPinia} from 'pinia'
// 引入持久化插件
import piniaPluginPersist from 'pinia-plugin-persistedstate'
import '@/assets/alibaba_icon/iconfont.css'; // 引入自定义图标样式文件

const pinia = createPinia()
pinia.use(piniaPluginPersist)
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
//app.config.devtools(true)
app.use(router)
app.use(pinia)
app.mount('#app')